
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import {myRequest} from "./util/api.js"
Vue.config.productionTip = false


Vue.prototype.$myRequest = myRequest
Vue.filter('formatDate',(data)=>{
		const newDate = new Date(date)
		const year = newDate.getFullYear()
		const month = (newDate.getMonth() + 1).toString().padStart(2,"0")
		const day = newDate.getDate().toString().padStart(2,"0")
		return(year+"-"+month+"-"+day)
})

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif